package com.lagou.edu.controller;

import com.lagou.edu.service.ResumeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/resume")
@Slf4j
public class ResumeController {
    @Resource(name = "resumeServiceImpl")
    private ResumeService resumeService;

    @GetMapping("/openstate/{userId}")
    public Integer findDefaultResumeState(@PathVariable Long userId) {
        log.info("--->参数：" + userId);
        return resumeService.findDefaultResumeByUserId(userId);
    }

}
